import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import SpaceManger from '@/views/SpaceManger/SpaceManger'
import ActiveManger from '@/views/SpaceManger/ActiveManger'
import SpaceRelease from '@/views/SpaceManger/SpaceRelease'
import ActiveRelease from '@/views/SpaceManger/ActiveRelease'
Vue.use(Router)

export default new Router({
  routes: [
    // 空间管理、主页
    {
      path: '/',
      name: 'SpaceManger',
      component: SpaceManger
    },
    // 空间管理
    {
      path: '/index',
      name: 'SpaceManger',
      component: SpaceManger,
      children:[
        {
          path: 'hl',
          name: 'HelloWorld',
          component: HelloWorld,
        }
      ]
    },
    // 活动管理
    {
      path: '/act',
      name: 'ActiveManger',
      component: ActiveManger
    },
    // HelloWorld
    {
      path: '/hl',
      name: 'HelloWorld',
      component: HelloWorld,
    },
    // 空间发布
    {
      path: '/space_release',
      name: 'SpaceRelease',
      component: SpaceRelease,
    },
    // 活动发布
    {
      path: '/active_release',
      name: 'ActiveRelease',
      component: ActiveRelease,
    }
   
  ]
})
